package com.ishansong.ticket.model;


import javax.persistence.*;
import java.io.Serializable;

/**
 * Created by saiyin on 15/9/19.
 */
@Entity
@Table(name = "ticket_qa_groups")
public class TicketQaGroup implements Serializable {
    private static final long serialVersionUID = 1L;
    //主键id
    private Integer id;
    private Integer pid;
    private String name;
    private Integer qaType;   // 问题类型 0闪送 1客户
    @Id
    @Column(name = "id", unique = true, nullable = false)
    @GeneratedValue(strategy = GenerationType.AUTO)
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Column(name = "pid")
    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }
    @Column(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    @Column(name = "qa_type")
    public Integer getQaType() {
        return qaType;
    }

    public void setQaType(Integer qaType) {
        this.qaType = qaType;
    }

    @Override
    public String toString() {
        return "WorkQaGroup{" +
                "id=" + id +
                ", pid=" + pid +
                ", name='" + name + '\'' +
                '}';
    }
}
